package org.yihang.annotation.easyui;

import java.lang.annotation.*;

import static org.yihang.annotation.easyui.InputScope.BOTH;
import static org.yihang.annotation.easyui.InputType.Text;

@Documented
@Target(ElementType.FIELD)
@Retention(RetentionPolicy.RUNTIME)
public @interface Input {

    String label() default "";

    public int width() default 180;

    InputType type() default Text;

    public String source() default "";

    public String valueField() default "value";

    public String textField() default "text";

    public String clientValue() default "";

    public InputScope scope() default BOTH;

    public boolean serverValue() default false;

    public boolean readonly() default false;
}
